From f13cb9e09b6e2cf49353bdf58d289509d37aaf67 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 9 Jan 2007 20:57:10 +0000 Subject: [PATCH] braces are usefull --- includes/Parser.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 8d67279dbe..ff1b757cea 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1552,7 +1552,6 @@ class Parser $e2 = wfMsgForContent( 'linkprefix' ); $useLinkPrefixExtension = $wgContLang->linkPrefixExtension(); - if( is_null( $this->mTitle ) ) { throw new MWException( __METHOD__.": \$this->mTitle is null\n" ); } @@ -1569,10 +1568,11 @@ class Parser $prefix = ''; } - if($wgContLang->hasVariants()) + if($wgContLang->hasVariants()) { $selflink = $wgContLang->convertLinkToAllVariants($this->mTitle->getPrefixedText()); - else + } else { $selflink = array($this->mTitle->getPrefixedText()); + } $useSubpages = $this->areSubpagesAllowed(); wfProfileOut( $fname.'-setup' ); -- 2.20.1